package com.ruoyi.web.core.send;

import com.github.misterchangray.core.annotation.MagicClass;
import com.github.misterchangray.core.annotation.MagicField;
import com.github.misterchangray.core.enums.ByteOrder;

@MagicClass(byteOrder = ByteOrder.LITTLE_ENDIAN)
public class DownloadSendMagicDto {

    @MagicField(order = 1, size = 12)
    private String m_ucFileNO;// 文件编号

    @MagicField(order = 2, size = 2)
    private byte m_uiPackageIndex; // 包索引

    @MagicField(order = 3, size = 2)
    private short m_uiPackageNum;// 拆包总数

    @MagicField(order = 4, size = 2)
    private short m_uiPackageSize;// 当前包数据大小

//    @MagicField(order = 5, dynamicSize = true)//dynamicSize = true会报错，所以注释用手动的
    private byte[] m_ucPackgeData;// 文件数据


    public String getM_ucFileNO() {
        return m_ucFileNO;
    }

    public void setM_ucFileNO(String m_ucFileNO) {
        this.m_ucFileNO = m_ucFileNO;
    }

    public int getM_uiPackageIndex() {
        return m_uiPackageIndex;
    }

    public void setM_uiPackageIndex(byte m_uiPackageIndex) {
        this.m_uiPackageIndex = m_uiPackageIndex;
    }

    public int getM_uiPackageNum() {
        return m_uiPackageNum;
    }

    public void setM_uiPackageNum(short m_uiPackageNum) {
        this.m_uiPackageNum = m_uiPackageNum;
    }

    public short getM_uiPackageSize() {
        return m_uiPackageSize;
    }

    public void setM_uiPackageSize(short m_uiPackageSize) {
        this.m_uiPackageSize = m_uiPackageSize;
    }

    public byte[] getM_ucPackgeData() {
        return m_ucPackgeData;
    }

    public void setM_ucPackgeData(byte[] m_ucPackgeData) {
        this.m_ucPackgeData = m_ucPackgeData;
    }

}
